import React, { useContext } from 'react'
import {App1Context} from '../../../App'
import { App2Context } from '../../../App'

export default function Item() {
  const arr = useContext(App1Context)
  const count = useContext(App2Context)

  return (
    <div>
        <h1>我是孙子组件</h1>
        父组件的arr:{arr}
        <p>我用得父组件count的值是{count}</p>
    </div>
  )
}
